<?php 
include "connect.php";
$class_name=$_POST['class_name'];
$dept_id=$_POST['dept_id'];
$campus_id=$_POST['campus_id'];

$dbquery="INSERT INTO class (class_name,dept_id,campus_id) VALUES ('$class_name','$dept_id','$campus_id')";

mysql_query($dbquery);
	
header("location:add_class_success.php");
?>